package com.sinping.qh.repository.mongo.records;

import com.sinping.qh.domain.records.CheckRecord;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author zhangjin
 * @create 2018/5/31
 */
public interface CheckRecordsRepository extends MongoRepository<CheckRecord,String> {

    List<CheckRecord> findCheckRecordsByCheckPlanId(String checkPlanId);

    List<CheckRecord> findCheckRecordsByCheckPlanIdAndCheckStatusOrderByGmtCreatedDesc(String checkPlanId,String checkStatus);
    List<CheckRecord> findCheckRecordsByIdInOrderByGmtCreatedDesc(List<String> IdList);

}
